package com.spark.incoicings.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spark.invoicings.entity.PurchaseReturnOrder;
import com.spark.invoicings.utils.Result;

import java.util.List;
import java.util.Map;

public interface PurchaseReturnOrderService extends IService<PurchaseReturnOrder> {

    /**
     * 更新采购退货单
     * @param purchaseReturnOrder
     * @return
     */
    Result updatePurchaseReturnOrder(PurchaseReturnOrder purchaseReturnOrder);

    /**
     * 保存采购退货单
     * @param purchaseReturnOrder
     * @return
     */
    Result addPurchaseReturnOrder(PurchaseReturnOrder purchaseReturnOrder);

    /**
     * 根据id查询采购退货单
     * @return
     */
    PurchaseReturnOrder selectPurchaseReturnOrderById(Integer id);

    /**
     * 查询所有采购退货单
     * @return
     */
    List<PurchaseReturnOrder> selectPurchaseReturnOrderAll(Map<String, Object> map);

}
